﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>



<asp:Content ID="Content2" ContentPlaceHolderID="MiddleContent" runat="server">

   
   
   <fieldset><legend>添加角色</legend>
   <% foreach (string role in ViewData["AllRoles"] as IEnumerable)
      { %>
      <p><%=role %></p>
   <%} %>
   <form method="post" action="<%=Url.Action("AddRole","Manager") %>">
   <input type="text" name="newrole" id="newrole" /><input type="submit" value="Post" />
   </form>
   </fieldset>

   <fieldset><legend>添加Admin</legend>
   <% foreach (string user in ViewData["AllAdmins"] as IEnumerable)
      { %>
      <p><%=user %></p>
   <%} %>

   <form method="post" action="<%=Url.Action("AddUserToAdmin","Manager") %>">
   <input type="text" name="userId"  /><input type="submit" value="Add" />
   </form>

   <form method="post" action="<%=Url.Action("RemoveUserFromAdmin","Manager") %>">
   <input type="text" name="userId" /><input type="submit" value="Delete" /> 
   </form>

   </fieldset>

   <fieldset><legend>添加Editor</legend>
   <% foreach (string user in ViewData["AllEditors"] as IEnumerable)
      { %>
      <p><%=user %></p>
   <%} %>

   <form method="post" action="<%=Url.Action("AddUserToEditor","Manager") %>">
   <input type="text" name="userId"  /><input type="submit" value="Add" />
   </form>

    <form method="post" action="<%=Url.Action("RemoveUserFromEditor","Manager") %>">
   <input type="text" name="userId" /><input type="submit" value="Delete" />
   </form>

   </fieldset>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
